]> git.saurik.com Git - apple/mdnsresponder.git/blob - Documents/Start mDNSResponder in Xcode.rtfd/TXT.rtf
mDNSResponder-765.30.11.tar.gz
[apple/mdnsresponder.git] / Documents / Start mDNSResponder in Xcode.rtfd / TXT.rtf
1 {\rtf1\ansi\ansicpg1252\cocoartf1404\cocoasubrtf460
2 {\fonttbl\f0\fswiss\fcharset0 Helvetica;}
3 {\colortbl;\red255\green255\blue255;}
4 \margl1440\margr1440\vieww51000\viewh25780\viewkind0
5 \deftab720
6 \pard\pardeftab720\partightenfactor0
7
8 \f0\fs24 \cf0 \expnd0\expndtw0\kerning0
9 Instructions on how to run a secondary mDNSResponder in the Xcode debugger. (Two known issues, the secondary mDNSResponder will not send unicast mDNS packets and it does not support BTMM.)\
10 \
11 1.) From Terminal shell, open mDNSResponder Xcode project. \'a0\
12 \
13 $ open mDNSMacOSX/mDNSResponder.xcodeproj/\
14 \
15 You can also just double click on the project from Finder.\
16 \
17 2.) Configure Xcode Project Scheme by adding the following three arguments, -d -NoSandbox -UseDebugSocket.\
18 \
19 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardeftab720\pardirnatural\partightenfactor0
20 \cf0 \kerning1\expnd0\expndtw0 {{\NeXTGraphic A944EB40-AEFD-4CA1-BF10-E8F52835CA8C.png \width18360 \height4420
21 }¬}\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardeftab720\pardirnatural\partightenfactor0
22 \cf0 \expnd0\expndtw0\kerning0
23 \
24 \pard\pardeftab720\partightenfactor0
25 \cf0 \
26 3.) Build and run mDNSResponder by setting the target to mDNSResponder.\
27 \
28 \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardeftab720\pardirnatural\partightenfactor0
29 \cf0 \kerning1\expnd0\expndtw0 {{\NeXTGraphic Screen Shot 2015-09-16 at 4.22.37 PM.png \width5980 \height660
30 }¬}\expnd0\expndtw0\kerning0
31 \
32 \pard\pardeftab720\partightenfactor0
33 \cf0 \
34 Then execute\'a0Command-R to build and run your code with the active scheme.\
35 \
36 \pard\pardeftab720\pardirnatural\partightenfactor0
37 \cf0 \kerning1\expnd0\expndtw0 \CocoaLigature0 4.) Before using dns-sd with Xcode-version of mDNSResponder, make sure to export the socket UDS path by executing one of the following commands:\
38 \
39 From a Borne, bash or zsh, execute this command:\
40 \
41 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardeftab720\pardirnatural\partightenfactor0
42 \cf0 export DNSSD_UDS_PATH=/var/tmp/mDNSResponder\
43 \
44 \pard\tx729\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardeftab720\pardirnatural\partightenfactor0
45 \cf0 From csh or tcsh, execute this command:\
46 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardeftab720\pardirnatural\partightenfactor0
47 \cf0 \
48 \expnd0\expndtw0\kerning0
49 \CocoaLigature1 setenv DNSSD_UDS_PATH /var/tmp/mDNSResponder\
50 \
51 There may be other variants to setting the environment variable as well for other shells.\kerning1\expnd0\expndtw0 \CocoaLigature0 \
52 \
53 Now running dns-sd will interoperate with the secondary Xcode-version of mDNSResponder as long as you run dns-sd from this terminal shell.\
54 \
55 5.) \expnd0\expndtw0\kerning0
56 \CocoaLigature1 Now set a breakpoint in Xcode and try to trigger it using dns-sd.\
57 }